package com.stateMode;

public class Test {
    public static void main(String[] args) {

        //假设只有一个奖品
        RaffleActivity activity = new RaffleActivity(1);
        //抽300次奖
        for (int i = 0; i < 10; i++) {
            System.out.println(" ------  第【"+i+"】次抽奖  ------");
            //扣钱
            activity.deductMoney();
            //开始抽奖
            activity.raffle();
        }

    }
}
